package com.ruoyi.quartz.task;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.ruoyi.business.service.IBusinessReminderService;

/**
 * 提醒发送任务
 * 
 * @author ruoyi
 */
@Component("reminderSendTask")
public class ReminderSendTask
{
    private static final Logger log = LoggerFactory.getLogger(ReminderSendTask.class);
    
    @Autowired
    private IBusinessReminderService businessReminderService;
    
    /**
     * 发送提醒消息
     */
    public void sendReminders()
    {
        log.info("开始执行提醒发送任务");
        int count = businessReminderService.sendReminders();
        log.info("提醒发送任务执行完毕，共发送{}条提醒", count);
    }
} 